#include"stdio.h"
struct student{
	int num;
	char name[10];
	int computer,english,math;
	double average;
};
double count_average(struct student s);
main()
{
	int i,n;
	struct student s1;
	printf("Input n:");
	scanf("%d",&n);
	printf("Input student's number,name and course scores\n");
	for(i=1;i<=n;i++){
		printf("No.%d:",i);
		scanf("%d%s%d%d%d",&s1.num,s1.name,&s1.math,&s1.english,&s1.computer);
		s1.average=count_average(s1);
		printf("num:%d\nname:%s\naverage:%.2lf\n",s1.num,s1.name,s1.average);
	}
	return 0;
}
double count_average(struct student s)
{
	return(s.math+s.english+s.computer)/3.0;
}